package com.tbh.inject.inner;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class InnerMain {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("Beans.xml");
        TextEditor textEditor = (TextEditor) applicationContext.getBean("textEditor2");
        textEditor.spelling();
    }
}
